/**
 * @author 赵希奥
 * @date 2022/4/19 1:27
 * @gitHub https://github.com/CKXGZXA
 * @gitee https://gitee.com/ckxgzxa
 * @description:
 * 营长类, 充当具体处理者
 */
public class YingZhang extends Officer {
    public YingZhang(String name) {
        super(name);
    }

    @Override
    public void processRequest(MissionRequest request) {
        if (request.getEnemyCount() >= 50 && request.getEnemyCount() <= 200) {
            System.out.printf("营长%s下达作战命令, 对%d个敌人进行作战%n", this.name, request.getEnemyCount());
        } else {
            System.out.println("敌人数目太多, 开会讨论过后再做打算");
        }
    }
}
